package com.dailyblue.java.spring.ssm.service.impl;

import com.dailyblue.java.spring.ssm.bean.Emp;
import com.dailyblue.java.spring.ssm.bean.JsonResult;
import com.dailyblue.java.spring.ssm.mapper.EmpMapper;
import com.dailyblue.java.spring.ssm.service.EmpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private EmpMapper empMapper;

    public JsonResult<List<Emp>> findAllEmp() {
        return new JsonResult<>(200,null,empMapper.findAllEmp());
    }
}
